import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';


@Injectable()
export class ArticleService{

  constructor(
    private http:HttpClient
  ){
  }

  //文章数据
  getArticle(body:any):Observable<any> {
    return this.http.request('get', 'article',{body:body});
  }


}
